﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ChangePass.aspx.cs" Inherits="ChangePass" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="oncenter">
<h2 style="font-size: 16px; color: #3f3f3f;">Промени лозинка</h2>
        <asp:Table ID="Table1" runat="server">
                <asp:TableRow>
                    <asp:TableCell><h3 style="font-size: 12px; color: #3f3f3f;">Корисничко име:</h3></asp:TableCell>
                    <asp:TableCell><asp:TextBox ID="txtName" runat="server" Enabled="false"></asp:TextBox></asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell><h3 style="font-size: 12px; color: #3f3f3f;">Стара Лозинка:</h3></asp:TableCell>
                    <asp:TableCell><asp:TextBox ID="txtPasswordOld" runat="server" TextMode="Password"></asp:TextBox>*<asp:RequiredFieldValidator ID="r1" runat="server" 
                            ErrorMessage="Внесете ја старата лозинка !" ControlToValidate="txtPasswordOld" Display="None" ForeColor="Red"></asp:RequiredFieldValidator></asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell><h3 style="font-size: 12px; color: #3f3f3f;">Нова Лозинка:</h3></asp:TableCell>
                    <asp:TableCell><asp:TextBox ID="txtPasswordNew" runat="server" TextMode="Password"></asp:TextBox>*<asp:RequiredFieldValidator ID="r2"
                                runat="server" ErrorMessage="Внесете нова лозинка !" Display="None"
                            ControlToValidate="txtPasswordNew" ForeColor="Red"></asp:RequiredFieldValidator></asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell><h3 style="font-size: 12px; color: #3f3f3f;">Потврди Лозинка:</h3></asp:TableCell>
                    <asp:TableCell><asp:TextBox ID="txtConfirmNew" runat="server" TextMode="Password"></asp:TextBox>
                       *<asp:RequiredFieldValidator ID="r3" runat="server" Display="None" 
                            ErrorMessage="Потврдете jа новата лозинката" ControlToValidate="txtConfirmNew" ForeColor="Red"></asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="c1" runat="server" Display="None" ErrorMessage="Погрешна лозинка !" ControlToCompare="txtPasswordNew" 
                            ControlToValidate="txtConfirmNew" ForeColor="Red"></asp:CompareValidator> </asp:TableCell>
                </asp:TableRow>
    
                 <asp:TableRow>
                    <asp:TableCell ColumnSpan="2">
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell ColumnSpan="2" align="center">
                        <asp:Button ID="btnChange" runat="server" 
                            Text="Промени" onclick="btnChange_Click" /></asp:TableCell>
                </asp:TableRow>
                <asp:TableRow><asp:TableCell ColumnSpan="2"><asp:Label ID="lblChange" runat="server" Text="" ForeColor="Red"></asp:Label></asp:TableCell></asp:TableRow>
            </asp:Table>     
            </div>   
</asp:Content>

